package Astar;

import java.awt.Point;


public class Node implements Comparable<Object>
{

        public Point pos = new Point();

	public int g = 0; 
	public double h = 0;
	public boolean blocked;
	public Node parent = null;

	public Node( Point position )
	{
		pos.x = position.x;
		pos.y = position.y;

	}

      public double getCost() { return g + h; }
      public Point getPos(){ return pos;}


      public int compareTo( Object t )
      {
          throw new UnsupportedOperationException("Not supported yet.");
      }



}
